<?php
require_once 'Zend/Db/Table/Abstract.php';
class ContentModel extends Zend_Db_Table_Abstract
{
	protected $_name = 'content';
	protected $_id = 'id';
	
   
   
   public function getContentType($type){
		$db = Zend_Registry::get('connectDB');
		$mysql = $db->select()
					->from('content')
					->where("type =?",$type);
		$list = $db->fetchAll($mysql);
		return $list;
	}
	
	
	
	 public function getContent(){
		$db = Zend_Registry::get('connectDB');
		$mysql = $db->select()
					->from('content');
		$list = $db->fetchAll($mysql);
		return $list;
	}
	
	
}